-- GENERATED SPELL FOR [Cenarion Botanist] --


function spell0_4051(pUnit, Event) --@Rejuvenation,n/a--
pUnit:FullCastSpellOnTarget(1430,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4051', 12000, 1)
end

function spell1_4051(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(9739,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4051', 2000, 1)
end

function Sorts_4051(pUnit, Event)
local choix_sorts_4051 = math.random(0, 1)
if choix_sorts_4051 == 0 then
pUnit:RegisterEvent('spell0_4051', 1, 1)
end
if choix_sorts_4051 == 1 then
pUnit:RegisterEvent('spell1_4051', 1, 1)
end
end

function mob4051_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4051', math.random(1500, 3000), 1)
end

function mob4051_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4051_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4051_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4051, 1, 'mob4051_Action')
RegisterUnitEvent(4051, 2, 'mob4051_Leave')
RegisterUnitEvent(4051, 3, 'mob4051_Kill')
RegisterUnitEvent(4051, 4, 'mob4051_Die')
